package com.yami.shop.bean.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 用户空投记录表
 * </p>
 *
 * @author author
 * @since 2023-05-18
 */
@Data
@TableName("tz_user_airdrop")
public class UserAirdrop implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    @TableId(value = "air_drop_id", type = IdType.AUTO)
    private Long airDropId;

    @Schema(description = "业务类型 1：店铺人工空投 2：任务空投 3:权益空投")
    private Integer businessType;

    @Schema(description = "空投物品名称")
    private String articleName;

    @Schema(description = "空投物品id")
    private String articleId;

    @Schema(description = "空投物品类型 0：商品 1盲盒 2商品优先购资格 2盲盒优先购资格 ")
    private Integer articleType;

    @Schema(description = "用户id")
    private String userId;

    @Schema(description = "空投个数")
    private Integer num;

    @Schema(description = "空投成功个数")
    private Integer successNum;

    @Schema(description = "处理状态：0：待处理 1：失败 2：成功 3：部分成功")
    private Integer status;

    @Schema(description = "失败原因")
    private String reason;

    @Schema(description = "空投店铺Id")
    private Long dropShopId;

    @Schema(description = "空投业务Id")
    private Long airdropBusinessId;

    @Schema(description = "创建时间")
    private Date createTime;

    @Schema(description = "修改时间")
    private Date updateTime;

    @Schema(description = "用户手机号码")
    @TableField(exist = false)
    private String userMobile;

    @Schema(description = "用户昵称")
    @TableField(exist = false)
    private String nickName;


}
